package SOEN_Phase_2;

import junit.framework.TestCase;
import junit.framework.Assert;

import java.awt.Window;
import java.awt.event.WindowEvent;

import javax.swing.event.ChangeEvent;

public class TaskProUITest extends TestCase {
	
	public void testTaskProUI() {
		TaskPro tp = new TaskPro();
		TaskProUI tpui = new TaskProUI(tp);
		
		assertTrue("TaskProUI() test failed", tpui.isVisible());
		
	}

	public void testEditingStopped() {
		TaskPro tp = new TaskPro();
		TaskProUI tpui = new TaskProUI(tp);
		
		tpui.editingStopped(new ChangeEvent(new Object()));
		
		assertTrue("editingStopped() test failed", tpui.isVisible());
		
	}


}
